home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC]
/
NeXTSTEP 3.3 Dev Intel.iso
/
NextDeveloper
/
Source
/
GNU
/
libg++
/
libio
/
tests
/
tiomisc.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1994-02-15
|
450b
|
34 lines
/* Random regression tests etc. */
#include <fstream.h>
#include <stdio.h>
#include <strstream.h>
#define BUF_SIZE 4096
void
test1 ()
{
fstream f;
char buf[BUF_SIZE];
f.setbuf( buf, BUF_SIZE );
}
void
test2 ( )
{
char string[BUF_SIZE];
ostrstream s( string, BUF_SIZE );
s << "Bla bla bla " << 55 << ' ' << 3.23 << '\0' << endl;
cout << "Test2: " << string << endl;
}
int main( )
{
test1 ();
test2 ();
return 0;
}